﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ARR.UI.Commands;
using System.Windows.Input;
using ARR.UI.Helpers;


namespace ARR.UI.ViewModels
{
    public class ConfirmViewModel : ViewModelBase
    {

        private ICommand cancel;
        private ICommand ok;
        private string text;



        public ConfirmViewModel()
        {
            ok = new Commands.RelayCommand(x => WindowManager.CloseView(this, true));
            cancel = new Commands.RelayCommand(x => WindowManager.CloseView(this, false));
        }



        public ICommand CancelCommand
        {
            get { return this.cancel; }
        }

        public string ImageSourcePath
        {
            get
            {
                return "/Images/Information-32.png";
            }
        }

        public ICommand OkCommand
        {
            get { return this.ok; }
        }

        public string Text
        {
            get
            {
                return text;
            }
            set
            {
                text = value;
                base.OnPropertyChanged<ConfirmViewModel>(x => x.Text);
            }
        }

        public string Title
        {
            get { return "Pedido de confirmación"; }
        }
    }
}
